#ifndef _SERIAL_H__
#define _SERIAL_H__
#include "os/types.h"

#define CH_START						0xF5
#define CH_END							0xF6
#define CH_ESC							0xF7
#define CH_ESC_START					0x05
#define CH_ESC_END						0x06
#define CH_ESC_ESC						0x07

void serial_poll(void);
bool serial_send_response(u8 dest, u8 src, const void *response, u16 length);
void serial_write(const u8 *buff, u16 size);
#endif /* _SERIAL_H__ */